import math
def solve(a: float, b:float, c:float):
    print(f"{a}x^2+{b}x^2+c=0")
    d = b*b - 4*a*c
    x1 = None
    x2 = None
    if d == 0:
        x1 = -b/(2*a)
        print("Нет корней")
        return (x1,)
    elif d < 0:
        return (None,)
    else:
        x1 = (-b - math.sqrt(d))/(2*a)
        x2 = (-b + math.sqrt(d))/(2*a)
        return (x1, x2)


print(solve(2,1,2))
print(solve(5,0,0))
print(solve(1,-8,12))